<?php
namespace app\common\validate;

use think\Validate;

class MemberWalletLogs extends Validate
{
    protected $rule = [
        'mid'     => 'require',
        'amount'  => 'require|number',
        'account' => 'require',
        'type'    => 'require|in:1,2',
        'text'    => 'require',
    ];

    protected $message = [
        'mid'     => '{%mid_require}',
        'amount'  => '{%amount_require}',
        'account' => '{%account_require}',
        'type'    => '{%type_val}',
        'text'    => '{%text_require}',
    ];

    protected $scene = [
        'add' => ['mid','type','amount','text'],
    ];
}